package com.windy.service;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class ServiceFactory {
	private ApplicationContext context;
	
	public static ServiceFactory getInstance()
	{
		return new ServiceFactory();
	}

	public ServiceFactory() {
		this.context = new ClassPathXmlApplicationContext(
				"applicationContext.xml");
	}

	public Object getService(String serviceID) {
		return this.context.getBean(serviceID);
	}

}
